package cn.edu.scau.cmi.xianjiehua.adapter;

import java.net.URL;
import java.util.ResourceBundle;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;

public class AdapterController implements Initializable {

	@FXML
	private TextArea console;
	
	@FXML
	private Button ofclass;
	@FXML
	private Button ofobject;
	
	@Override
	public void initialize(URL arg0, ResourceBundle arg1) {
	}
	
	public void ofClass(ActionEvent event) {
		Transformer transformer = new TransformerOfClass();
		console.appendText(transformer.transform() + "\n");
	}

	public void ofObject(ActionEvent event) {
		Transformer transformer = new TransformerOfObject();
		console.appendText(transformer.transform() + "\n");
	}
}
